package com.indusfo.spc.controller;

import com.indusfo.spc.pojo.OrderChange;
import com.indusfo.spc.service.OrderChangeService;
import com.indusfo.spc.vo.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 *@Description 任务单变更接口
 *@Author louk
 *@Date 11:05 2019/11/29
*/
@Controller
@RequestMapping("/service/orderChange")
public class OrderChangeController {

    @Resource
    private OrderChangeService orderChangeService;
    /**
     *@Description 查询任务单变更
     *@Author louk
     *@Date 11:05 2019/11/29
    */
    @RequestMapping("queryOrderChange")
    @ResponseBody
    public JSONObject queryOrderChangeList(OrderChange orderChange){
        return orderChangeService.queryOrderChangeList(orderChange);
    }
    /**
     *@Description 查询任务单变更数量
     *@Author louk
     *@Date 11:05 2019/11/29
     */
    @RequestMapping("queryOrderChangeNumber")
    @ResponseBody
    public JSONObject queryOrderChangeNumber(@RequestBody OrderChange orderChange){
        return orderChangeService.queryOrderChangeNumber(orderChange.getOrderId());
    }

}
